import { BaseType } from '@/api/common/types'

export interface RegionForm {
    id: number
    code: string
    name: string
    type: number
    description: string
    parentId?: number
}

export interface AddressType {
    id: number
    code: string
    name: string
    type: number
    children: AddressType[]
}
export type RegionCategory = 'ProvinceOrMunicipality' | 'City' | 'CountyOrDistrict' | 'TownOrtownshipOrStreet' | 'VillageOrCommunity'
export interface RegionType extends RegionForm, BaseType {
    parentName?: string
}
